package org.panda.spring.impl;

import com.icegreen.greenmail.util.GreenMailUtil;
import com.icegreen.greenmail.util.ServerSetup;
import org.panda.spring.AccountEmailService;

public class AccountEmailServiceImpl implements AccountEmailService {

    @Override
    public void sendMail(String to, String subject, String htmlText) {
        // 发送一封简单邮件
        String from = "sender@example.com";
        GreenMailUtil.sendTextEmail(to,from,subject,htmlText, ServerSetup.IMAP);
    }
}
